import {NgModule} from '@angular/core';

import {AppRoutingModule} from './app-routing.module';
import {EveryDataRootComponent} from "./root.component";
import {HTTP_INTERCEPTORS, HttpClientModule} from "@angular/common/http";
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
import {GnOAuthHttpInterceptor} from "geminis-ng";
import zh from '@angular/common/locales/zh';
import {registerLocaleData} from '@angular/common';

registerLocaleData(zh);

@NgModule({
  declarations: [
    EveryDataRootComponent
  ],
  imports: [
    AppRoutingModule,
    HttpClientModule,
    BrowserAnimationsModule,
  ],
  providers: [
    {provide: HTTP_INTERCEPTORS, useClass: GnOAuthHttpInterceptor, multi: true}
  ],
  bootstrap: [EveryDataRootComponent]
})
export class AppModule {
}
